package com.cupk.service;

import com.cupk.pojo.Match;
import com.cupk.pojo.Stage;

import java.util.List;

public interface StageService {
    Boolean judgeLegal(Stage stage);

    Boolean judgeLegal(Integer matchId, Integer userId, Integer role);

    void addStage(Stage stage);

    Integer findMaxPeriod(Integer matchId);

    List<Stage> getListByMatchId(Integer matchId);

    Stage getStageById(Integer id);

    void updateStage(Stage stage);

    void deleteStage(Integer stageId);

    List<Stage> getEffectListByMatchId(Integer matchId);

    Integer getAcceptPeople(Integer stageId);

    Integer getUnAcceptPeople(Integer stageId);

    Integer findMaxStage(Integer matchId);

    Integer findMinStage(Integer matchId);
}
